package com.whvc

object Test8 {
  def main(args: Array[String]): Unit = {
    val numbers = List(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)


    val evenNumbers = numbers.filter(_ % 2 == 0)
    val doubledNumbers = numbers.map(_ * 2)
    val sum = numbers.sum
    val filtered = numbers.filter(_ > 5)


    println(evenNumbers)
    println(doubledNumbers)
    println(sum)
    println(filtered)
  }
}
